package com.example.Red;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.Red.LoginRegister.LoginActivity;
import com.example.Red.LoginRegister.UserActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
    private Button button1,button2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        button1=(Button)findViewById(R.id.BtnImg);
        button2=(Button)findViewById(R.id.BtnUser);
        button1.setOnClickListener(this);
        button2.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.BtnImg:
                Intent intent=new Intent(MainActivity.this,Image.class);
                startActivity(intent);
                break;
            case R.id.BtnUser:
                Intent intent1=new Intent(MainActivity.this, UserActivity.class);
        }
    }
}